FROM openjdk:8-jdk-alpine
RUN addgroup -S syslec && adduser -S syslec -G syslec
USER syslec:syslec
VOLUME /tmp
ARG JAR_FILE=target/hello-world-0.0.1-SNAPSHOT.jar
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-jar","/app.jar"]